//
//  NSArray+new.m
//  Qihuo
//
//  Created by Vencoo on 13-12-3.
//  Copyright (c) 2013年 Vencoo. All rights reserved.
//

#import "NSArray+myNew.h"

@implementation NSArray (myNew)
-(NSInteger)indexOfObjectss:(id)object
{
    for (int i = 0; i < self.count; i++)
    {
        id obj = [self objectAtIndex:i];
        if ([obj isKindOfClass:[NSString class]])
        {
            if ([object isEqualToString:obj])
            {
                return i;
            }
        }
        else
        {
            if ([object isEqual: obj])
        
            {
                return i;
            }
        }
    }
    return 0;
}
@end
